package JLB_Chapter_05;
// DateAndTime
public class code_05_30 {
    public static void main(String[] args) {
        String str1 = String.format("%c",'X');
        System.out.println(str1);
        String str2 = String.format("%d",1251 + 3154);
        System.out.println(str2);
        String str3 = String.format("%.2f",Math.PI);
        System.out.println(str3);
        String str4 = String.format("%b",2 < 3);
        System.out.println(str4);
        String str5 = String.format("%h",3510);
        System.out.println(str5);
        String str6 = String.format("%o",33);
        System.out.println(str6);
        String str7 = String.format("%x",35);
        System.out.println(str7);
        String str8 = String.format("%e",120000.1);
        System.out.println(str8);
        String str9 = String.format("%a",40.0);
        System.out.println(str9);
        String str10 = String.format("天才是由%d%%的灵感，%d%%的汗水",1,99);
        System.out.println(str10);
    }
}
